<template>
  <div>
    <!-- <div>
      <el-row :gutter="20">
        <el-col :span="6">
          <div class="top-div">
            <img src="../../assets/img-1.png" alt>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="top-div">
            <img src="../../assets/img-2.png" alt>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="top-div">
            <img src="../../assets/img-3.png" alt>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="top-div">
            <img src="../../assets/img-4.png" alt>
          </div>
        </el-col>
      </el-row>
    </div>-->
    <div class="tableDiv">
      <div style="margin-bottom:20px">
        <el-button size="small" type="primary" icon="el-icon-plus" @click="handleClick">新增</el-button>
      </div>
      <el-table :data="tableData" style="width: 100%" class="custom-table">
        <el-table-column prop="a1" label="供应商名称" width="200px"></el-table-column>
        <el-table-column prop="a2" label="法人代表" width="auto"></el-table-column>
        <el-table-column prop="a3" label="注册资本" width="auto"></el-table-column>
        <el-table-column prop="a4" label="地址" width="200px"></el-table-column>
        <el-table-column prop="a5" label="邮编" width="auto"></el-table-column>
        <el-table-column prop="a6" label="企业性质 " width="auto"></el-table-column>
        <el-table-column prop="a7" label="税号 " width="160px"></el-table-column>
        <el-table-column prop="a8" label="开户银行 " width="auto"></el-table-column>
        <el-table-column prop="a9" label="账号 " width="160px"></el-table-column>
        <el-table-column prop="a10" label="业务联系人 " width="100px"></el-table-column>
        <el-table-column prop="a11" label="手机 " width="100px"></el-table-column>
        <el-table-column prop="a12" label="电话 " width="100px"></el-table-column>
        <el-table-column prop="a13" label="质量联系人 " width="100px"></el-table-column>
        <el-table-column prop="a14" label="电话 " width="100px"></el-table-column>
        <el-table-column fixed="right" label="操作" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small">删除</el-button>
            <el-button type="text" size="small" @click="handleClick">编辑</el-button>
          </template>
        </el-table-column>
      </el-table>
      <div style="margin-top:20px">
        <el-pagination background layout="prev, pager, next" :total="100"></el-pagination>
      </div>
    </div>
    <div>
      <el-dialog title="供应商信息" :visible.sync="dialogVisible" width="600px">
        <div>
          <el-form :inline="true" :model="formInline" label-width="90px">
            <el-form-item label="供应商名称">
              <el-input v-model="formInline.user1" placeholder="供应商名称"></el-input>
            </el-form-item>
            <el-form-item label="联系方式">
              <el-input v-model="formInline.user2" placeholder="联系方式"></el-input>
            </el-form-item>
            <el-form-item label="类型">
              <el-input v-model="formInline.user3" placeholder="类型"></el-input>
            </el-form-item>
          </el-form>

          
        </div>
        <span slot="footer" class="dialog-footer">
          <el-button @click="dialogVisible = false" size="small">取 消</el-button>
          <el-button type="primary" @click="dialogVisible = false" size="small">确 定</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false,
      tableData: [
        {
          a1: "江苏省大禹科技有限公司",
          a2: "李亮",
          a3: "1200万",
          a4: "江苏省南通市长春路1250号",
          a5: "000000",
          a6: "有限公司",
          a7: "70002512654",
          a8: "建设银行",
          a9: "6210212544566874163",
          a10: "董玉",
          a11: "13354256852",
          a12: "0434-8542152",
          a13: "张宇",
          a14: "18952457888"
        },
        {
          a1: "陕西省方智科技有限公司",
          a2: "宋怀真",
          a3: "3200万",
          a4: "陕西省下回市副春路1350号",
          a5: "010001",
          a6: "有限公司",
          a7: "60002512659",
          a8: "吉林银行",
          a9: "5210212544566874168",
          a10: "宋怀真",
          a11: "13354256852",
          a12: "0434-8542152",
          a13: "张覅",
          a14: "18952457888"
        },
        {
          a1: "吉林省德大肉业有限公司",
          a2: "李袁记",
          a3: "3200万",
          a4: "吉林省德惠市松柏路22号",
          a5: "010002",
          a6: "有限公司",
          a7: "73002512659",
          a8: "吉林银行",
          a9: "1230212544566874168",
          a10: "李隆基",
          a11: "18354256852",
          a12: "0431-85433333",
          a13: "李吉",
          a14: "18952457888"
        }
      ],
      formInline: {
        user: "",
        user1: "",
        user2: "",
        user3: "",
        region: ""
      }
    };
  },
  methods: {
    handleClick() {
      this.dialogVisible = true;
    },
    onSubmit() {
      console.log("submit!");
    }
  }
};
</script>
<style scoped >
.top-div {
  width: 100%;
  /* background-color: #fff; */
}
.top-div img {
  width: 100%;
  height: 100%;
}
.tableDiv {
  background-color: #fff;
  margin-top: 20px;
  padding: 20px;
}
.custom-table /deep/ .el-table__body td {
  font-size: 12px; /* 你想要的字体大小 */
}
</style>


